package com.sh.business.domain.bo;

import com.sh.business.domain.UserOutInvest;
import com.sh.common.mybatis.core.domain.BaseEntity;
import com.sh.common.core.validate.AddGroup;
import com.sh.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 用户外部投资记录业务对象 bms_user_out_invest
 *
 * @author ruoyi
 * @date 2025-03-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = UserOutInvest.class, reverseConvertGenerate = false)
public class UserOutInvestBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 订单编号
     */
    @NotBlank(message = "订单编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String orderSn;

    /**
     * 充值金额
     */
    @NotNull(message = "充值金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal amount;

    /**
     * 转出地址
     */
    @NotBlank(message = "转出地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fromAddress;

    /**
     * 转入地址
     */
    @NotBlank(message = "转入地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String toAddress;

    /**
     * 回调参数
     */
    @NotBlank(message = "回调参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String notifyData;

    /**
     * 备注
     */
    @NotBlank(message = "备注不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * jobId
     */
    private Long jobId;


}
